package SmartControl_Mediator_22;

import SmartControl_Mediator_22.Equipment.*;

public class SmartControlApplication {
    public static void main(String[] args) {

        CoffeeMachine coffeeMachine = new CoffeeMachine();
        Curtain curtain = new Curtain();
        Light light = new Light();

        SmartMediator controller = new SmartMediatorImpl(coffeeMachine, curtain, light);

        Alarm alarm = new Alarm(controller);

        alarm.on();
        System.out.println(" ");
        alarm.off();

    }
}
